package imgtagcounter;
/**
 * This class will build list of data from database.
 * @author Oleg Ruchlis & Marcelo Korn
 **/
public class ListEntry {
    
    /** Creates a new instance of default ListEntry constructor*/
    public ListEntry() {
        this(-1,"");
    }
        /**
     * Constructor
     * @param Url string with the URL address.
     * @param pics number of img tags in the URL.
     */
    public ListEntry(int pics,String Url) {
        this.Url = Url;       
        this.pics = pics;
    }
    /**
     * This method will get Url from database
     */
    public String getUrl() {
        return Url;
    }
     /**
     * This method will set Url into database
     * @param url to be set into dabase
     */
    public void setUrl(String url) {
        this.Url = url;
    }
    /**
     * This method will get pics number from database
     */
    public int getPics() {
        return pics;
    }
     /**
     * This method will set Url into database
     * @param pics to be set into dabase
     */
    public void setPics(int pics) {
        this.pics = pics;
    }
    /**
     * rewrite method Tostring according to the database 
     */
    public String toString( ){
        String value = Url + " - " + pics +"\r\n";
        return value;
        
    }
    /**
     * Field string url that will be inserted 
     */
    private String Url;
        /**
     * Field string pics that will be inserted 
     */
    private int pics;
}

